//
//  WSMTools.h
//  WinesMall
//
//  Created by Isaac on 17/8/29.
//  Copyright © 2017年 Isaac. All rights reserved.
//

#import <Foundation/Foundation.h>



@interface WSMTools : NSObject

+(WSMTools *)wsmTool;

@property (nonatomic, strong)NSDateFormatter *fommatter1;
@property (nonatomic, strong)NSDateFormatter *detailFommatter;

@property (nonatomic)BOOL isPost;

#pragma mark 时间转换
- (NSString *)getDateTimeByNSNumber:(NSString *)number;

- (NSString *)getDetailDateTimeByNSNumber:(NSString *)number;


- (NSTimeInterval)getTimeFromDate:(NSString *)date ;

#pragma mark 返回更新时间
- (NSString *)getUpdateTimeByNumber:(NSString *)number;

#pragma mark 返回发布时间
- (NSString *)getPublishTimeByNumber:(NSString *)number;

#pragma mark  跳转到第几个item
- (void)gotoTabBarItemWithTabNum:(NSInteger)num;

#pragma mark 跳转到登录界面
- (void)pointToLoginPage;

#pragma mark 获取当前控制器
- (UIViewController *)getCurrentVC;

#pragma mark ---   版本更新检查
-(void)appVersionChick;

#pragma mark 获得设备UUID
-(NSString*)getUUID;

- (NSString *)getToken;

- (void)handleCall:(NSString *)phoneNum SuperView:(UIView *)superV ;

#pragma mark 获取彩色字符串
- (NSMutableAttributedString *)getAttributedString:(NSString *)oldStr Color:(UIColor*)color begin:(NSInteger)begin end:(NSInteger)end LineSpace:(NSInteger)lineSpace IsCenter:(BOOL)isCenter Font:(NSInteger)font;



@end
